package com.briup.day11;

import com.briup.day11.abBean.Circle;
import com.briup.day11.abBean.Shape;

public class Test_Abstact01 {
    public static void main(String[] args) {
//        Shape shape=new Shape() {
//        }//抽象类无法实例化对象
        Shape shape=new Circle("圆形",2);
        double area=shape.getArea();
        System.out.println(area);
    }
}
